package com.ryskoo.catering.orderdetail.repository;

import com.ryskoo.catering.orderdetail.domain.OrderDetailPO;
import com.ryskoo.framework.core.repository.IBasicRepository;

import java.util.List;

/**
 * @author BeHappy
 */
public interface IOrderDetailRepository extends IBasicRepository<OrderDetailPO> {

    List<OrderDetailPO> getDetailListByOrderUuid(String orderUuid);

    /**
     * 根据商品uuid查询订单明细uuid集合，用于删除商品前的判断
     * @param productUuid
     * @return
     */
    List<String> getUuidsByProductUuid(String productUuid);
    /**
     * 根据订单uuid查询
     * @param orderUuid
     * @return
     */
    List<String> getDetailUuidsByOrderUuid(String orderUuid);
}
